package com.futureCloudMOM.core.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.futureCloudMOM.core.base.service.impl.BaseServiceImpl;
import com.futureCloudMOM.core.domain.TechnologyBomSub;
import com.futureCloudMOM.core.service.TechnologyBomSubService;
import com.futureCloudMOM.core.mapper.TechnologyBomSubMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 【Technology_BomSub】的数据库操作Service实现
 *
 * @author Administrator
 * @since 2023-06-20 16:37:26
 */
@Service
public class TechnologyBomSubServiceImpl extends BaseServiceImpl<TechnologyBomSubMapper, TechnologyBomSub> implements TechnologyBomSubService {

    @Override
    public List<TechnologyBomSub> selectListByMainId(Long bomId) {
        return list(new LambdaQueryWrapper<TechnologyBomSub>()
                .eq(TechnologyBomSub::getMainId, bomId));
    }
}
